<?php $this->_compileInclude('header'); ?>
<body>
<div class="container-fluid">
	<div class="row-fluid">
		<div class="pages">
            <?php $this->_compileInclude('nav'); ?>
			<div class="content">
				<div class="col-xs-9">
                    <div class="content-box padding">
						<h2 class="title">
                            <?php echo $this->tpl_var['cat']['catname']; ?>
							<a href="index.php?content-app-category&catid=<?php echo $this->tpl_var['cat']['catid']; ?>" class="badge pull-right"> 返回 </a>
						</h2>
						<ul class="list-unstyled list-img">
                            <li class="border padding">
								<h4 class="shorttitle text-center"><?php echo $this->tpl_var['content']['contenttitle']; ?></h4>
								<div class="intro">
									<div class="desc">
										<div class="text-center">
											<ul class="list-inline list-unstyled">
												<li class="toolbar">发布人：<?php echo $this->tpl_var['content']['contentusername']; ?></li>
											</ul>
										</div>
									</div>
								</div>
							</li>
							<li class="border morepadding">
								<div class="intro">
									<div class="desc" id="content">
										<?php echo html_entity_decode($this->ev->stripSlashes($this->tpl_var['content']['contenttext'])); ?>
									</div>
								</div>
							</li>
							<li class="border morepadding">
								<div class="intro">
									<div class="desc">
										<div class="toolbar text-right"><?php echo date('Y-m-d',$this->tpl_var['content']['contentinputtime']); ?></div>
									</div>
								</div>
							</li>
						</ul>
					</div>
				</div>
				<div class="col-xs-3 nopadding">
					<div class="content-box padding">
						<h2 class="title">新闻推荐</h2>
						<ul class="list-unstyled list-txt">
                            <?php $cid = 0;
 foreach($this->tpl_var['topnews']['data'] as $key => $content){ 
 $cid++; ?>
							<li class="striped">
								<a href="index.php?content-app-content&contentid=<?php echo $content['contentid']; ?>"> <?php echo $content['contenttitle']; ?></a>
							</li>
							<?php } ?>
						</ul>
					</div>
				</div>
			</div>
            <?php $this->_compileInclude('footer'); ?>
		</div>
	</div>
</div>
</body>
</html>